- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:pcu-equal
- 80216:
Function test xfi:pcu-equal
Documentation
Tests of function xfi:pcu-equal($left as node()*, $right as node()*) as xs:boolean
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
19-02-2008 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670718
Test Case Variations
V-01
Returns c-equality of nodes equal and in order
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq true()
V-02a
Same as V-01 but in different parent
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-02b
Same as V-01 but in different context
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-02c
Same as V-01 but different unit
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-03
Same as V-01 but arguments are sequences
Documentation
Inputs
- schema: c-equal.xsd
- linkbase: c-equal-definition.xml
- instance: pcu-equal-instance.xml
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:pcu-equal( ( //concept:P1[@id eq 'V01-left'], //concept:P1[@id eq 'tup1V01-left']),
( //concept:P1[@id eq 'V01-right'], //concept:P1[@id eq 'tup1V01-right']) )
(against file V03)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq true()
V-04
Same as V-01 but arguments are sequences not same length
Documentation
Inputs
- schema: c-equal.xsd
- linkbase: c-equal-definition.xml
- instance: pcu-equal-instance.xml
(DTS Discovery starting point)
(ID=V04)
-
Function Call:
xfi:pcu-equal( ( //concept:P1[@id eq 'V01-left'], //concept:P1[@id eq 'tup1V01-left']),
( //concept:P1[@id eq 'V01-right'] ) )
(against file V04)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-05
Wrong node to function
Documentation
XPath-defined error for node type incorrect.
Inputs
Outputs
-
Error code: xqt-err:XPTY0004
V-06
Non item node to function
Documentation
XBRL-defined error for node type incorrect.
Inputs
Outputs
-
Error code: xfie:NodeIsNotXbrlItem
V-07
A sequence of concepts as argument
Documentation
XPath-defined error for node type incorrect arity of arguments.
Inputs
Outputs
-
Error code: xqt-err:XPST0017
Revisions
Name
|
On
|
Details
|
Herm Fischer |
19-02-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
11-09-2010 at 00:00:00 |
Corrected test case instances removing nested IDs in context typed dimension values per bug 378.
|